//
//  MBProgressHUD+HUD.h
//  LFCF
//
//  Created by 邓伟浩 on 2019/4/17.
//  Copyright © 2019 邓伟浩. All rights reserved.
//

#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

@interface MBProgressHUD (HUD)

/** 获取HUD **/
+ (MBProgressHUD *)HUD;

+ (MBProgressHUD *)makeCommonHudForMsg:(nullable NSString *)message inView:(UIView *)view forMode:(MBProgressHUDMode)mode;

/** 只显示菊花 **/
+ (void)showLoadHUD;
+ (void)showLoadHUDInView:(nullable UIView *)view;

/** 显示菊花+文字 **/
+ (void)showLoadHUDMsg:(NSString *)message;
+ (void)showLoadHUDMsg:(NSString *)message inView:(nullable UIView *)view;

/** 显示文字-->几秒钟后消失 **/
+ (void)showHUDMsg:(NSString *)message;
+ (void)showHUDMsg:(NSString *)message inView:(nullable UIView *)view;
+ (void)showHUDMsg:(NSString *)message inView:(nullable UIView *)view duration:(NSTimeInterval)duration;

/** 环形进度条 + 文字 **/
+ (void)showCircularHUDProgress;
+ (void)showCircularHUDProgressMessage:(nullable NSString *)message inView:(nullable UIView *)view;

/** 水平进度条 + 文字 **/
+ (void)showBarHUDProgress;
+ (void)showBarHUDProgressMessage:(nullable NSString *)message inView:(nullable UIView *)view;


/** 自定义图片 + 文字 **/
+ (void)showCustomViewHUD:(nullable NSString *)msg imageName:(NSString *)imageName;
+ (void)showCustomViewHUD:(nullable NSString *)msg imageName:(NSString *)imageName inView:(nullable UIView *)view duration:(NSTimeInterval)duration;

+ (void)showCustomGifHUD:(nullable NSString *)msg imageName:(NSString *)imageName;
+ (void)showCustomGifHUD:(nullable NSString *)msg imageName:(NSString *)imageName inView:(nullable UIView *)view;

/** 隐藏HUD */
+ (void)hideHUD;
+ (void)hideHUDForView:(nullable UIView *)view;

@end

NS_ASSUME_NONNULL_END
